package online.inote.graphql.modules.author.entity;

import javax.persistence.Table;

import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.FieldNameConstants;
import online.inote.graphql.common.base.IdEntity;

/**
 * @description: TODO
 * @author XQF.Sui
 * @created 2019年4月20日 上午3:09:28
 * @version 1.0
 */
@Data
@FieldNameConstants
@EqualsAndHashCode(callSuper = false)
@Table(name = "t_author")
public class AuthorEntity extends IdEntity<Integer> {

	private static final long serialVersionUID = -369686211336782853L;

	private String name;
    private Integer age;
    
    @Builder
    public AuthorEntity(Integer id, String name, Integer age) {
    	this.setId(id);
    	this.setName(name);
    	this.setAge(age);
    }

}